package operateData;

import java.util.List;

import threeTables.User;

public class AuthService {
	public User login(int uID, String password) {
		OperateUser ope = new OperateUser();

		List<User> list = ope.queryuID(uID);
		if (list.size()==1) {
			User u = list.get(0);
			if (password.equals(u.getPassword())) {
			return u;
		}
		}
		return null;

	}
}
